package com.haiberg.framework.om;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="users", catalog="public")
public class Users implements java.io.Serializable {

	// Fields

	private Long id;
	private String username;
	private String password;
	private String firstname;
	private String lastname;
	private String email;
	private String address;
	private Integer timezone;

	// Constructors

	/** default constructor */
	public Users() {
	}
	
	public Users(String username, String password, String firstname,
			String lastname, String email, String address, Integer timezone) {
		super();
		this.username = username;
		this.password = password;
		this.firstname = firstname;
		this.lastname = lastname;
		this.email = email;
		this.address = address;
		this.timezone = timezone;
	}

	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "func")
    @SequenceGenerator(name = "func", allocationSize=1, initialValue=1, sequenceName = "users_id_seq")
    @Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="password")
	public String getPassword() {
		return this.password;
	}
	public void setPassword(String password) {
		this.password = password;
	}


	@Column(name="username")
	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}


	@Column(name="firstname")
	public String getFirstname() {
		return firstname;
	}



	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}


	@Column(name="lastname")
	public String getLastname() {
		return lastname;
	}



	public void setLastname(String lastname) {
		this.lastname = lastname;
	}


	@Column(name="email")
	public String getEmail() {
		return email;
	}



	public void setEmail(String email) {
		this.email = email;
	}


	@Column(name="address")
	public String getAddress() {
		return address;
	}



	public void setAddress(String address) {
		this.address = address;
	}


	@Column(name="timezone")
	public Integer getTimezone() {
		return timezone;
	}



	public void setTimezone(Integer timezone) {
		this.timezone = timezone;
	}
	
}